<?php
use think\facade\Route;
// index控制器路由注册 index view post dopost detail doRes me upme logout
Route::rule("zhongkl","index/index");
// 帖子列表 1803010144
Route::rule("/view/<sid?>","index/view",'get');
// 发帖
Route::get('/post/<sid>','index/post'); 
Route::post('/dopost','index/doPost');
// 查看详情贴回复贴
Route::get('/detail/<mid?>','index/detail');
Route::post('/dores/<mid?>','index/doRes');
// 修改密码
Route::rule('/changepa','index/changePa');
Route::post('/dochangepa','index/doChangePa');
// 修改头像
Route::rule('/me','index/me'); 
Route::post('/upme','index/upMe');
// 退出
Route::rule('/logout','index/logout');
// user控制器路由注册 login dologin reg doreg contact
// 登录
Route::rule('/login','user/login');
Route::post('dologin','user/dologin');
// 注册
Route::rule('/reg','user/reg');
Route::post('/doreg','user/doReg');
// 联系我们
Route::rule('/contact','user/contact');
Route::rule('/answer','answer/index');
Route::rule('/doscore','answer/doScore');
Route::rule('/score','answer/score');
Route::rule('/errortest','answer/errorTest');
Route::rule('exam','answer/exam');
Route::post('doExam','answer/doExam');
Route::rule('iexam','index/exam');
Route::rule('/lssue','answer/lssue');
Route::post('dolssue','answer/doLssue');
Route::rule('suanfa','answer/suanfa');
Route::rule('note','answer/note');
Route::rule('code','answer/code');
// MISS路由
Route::miss('public/miss');




